package com.xqboss.apps.vo.sys;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *     APP配置信息
 * </p>
 * @author Trent
 * @date 2023/9/11
 */
@Data
@ApiModel
public class AppRechargeProfileVo {

    @ApiModelProperty(value = "充值功能开启状态", required = true)
    @NotNull(message = "请选择充值开启状态")
    private Boolean rechargeEnable;
    @ApiModelProperty(value = "充值支付方式选择,如果开启充值功能，则至少要有一种支付方式")
    private List<Integer> rechargePayList;
    @ApiModelProperty("自定义充值金额")
    @NotNull(message = "请选择是否开启自定义金额充值")
    private Boolean rechargeInputAmount;
    @ApiModelProperty("自定义充值最低金额, null为不限制")
    @Positive(message = "最低充值金额只能为正数")
    private BigDecimal rechargeAmountMin;
    @ApiModelProperty("自定义充值最高金额, null为不限制")
    @Positive(message = "最高充值金额只能为正数")
    private BigDecimal rechargeAmountMax;
    @ApiModelProperty(value = "充值说明", required = true)
    @NotEmpty(message = "请输入充值说明")
    private String rechargeExplain;
    @ApiModelProperty(value = "充值协议")
    private String rechargeProtocol;

}
